package com.hb0730.boot.admin.modules.sci.model.query;

import com.hb0730.boot.admin.data.domain.TreeData;
import com.hb0730.boot.admin.modules.sci.model.entity.SciAccount;
import com.hb0730.boot.admin.modules.sys.system.model.dto.PermissionTree;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString
public class SciAccountTree extends SciAccount implements TreeData<SciAccountTree> {
    @Schema(description = "子菜单")
    private List<SciAccountTree> children = new ArrayList<>();

    public SciAccountTree setChildren(List<SciAccountTree> children) {
        this.children = children;
        return this;
    }
    public List<SciAccountTree> getChildren() {
        return children;
    }

}
